home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news text
| default
| |
99%
| file
| C source, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| dexmagic
| PrintFox/Pagefox WEAK
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/news
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 72 65 | 64 2e 77 65 65 67 2e 75 |Path: re|d.weeg.u|
|00000010| 69 6f 77 61 2e 65 64 75 | 21 72 6f 62 69 6e 73 6f |iowa.edu|!robinso|
|00000020| 6e 0a 46 72 6f 6d 3a 20 | 54 68 65 20 41 6d 6f 72 |n.From: |The Amor|
|00000030| 70 68 6f 75 73 20 4d 61 | 73 73 20 3c 72 6f 62 69 |phous Ma|ss <robi|
|00000040| 6e 73 6f 6e 40 62 6c 75 | 65 2e 77 65 65 67 2e 75 |nson@blu|e.weeg.u|
|00000050| 69 6f 77 61 2e 65 64 75 | 3e 0a 4e 65 77 73 67 72 |iowa.edu|>.Newsgr|
|00000060| 6f 75 70 73 3a 20 63 6f | 6d 70 2e 6c 61 6e 67 2e |oups: co|mp.lang.|
|00000070| 63 0a 53 75 62 6a 65 63 | 74 3a 20 52 65 3a 20 48 |c.Subjec|t: Re: H|
|00000080| 20 45 20 4c 20 50 0a 44 | 61 74 65 3a 20 46 72 69 | E L P.D|ate: Fri|
|00000090| 2c 20 35 20 41 70 72 20 | 31 39 39 36 20 31 35 3a |, 5 Apr |1996 15:|
|000000a0| 32 35 3a 30 36 20 2d 30 | 36 30 30 0a 4f 72 67 61 |25:06 -0|600.Orga|
|000000b0| 6e 69 7a 61 74 69 6f 6e | 3a 20 55 6e 69 76 65 72 |nization|: Univer|
|000000c0| 73 69 74 79 20 6f 66 20 | 49 6f 77 61 2c 20 49 6f |sity of |Iowa, Io|
|000000d0| 77 61 20 43 69 74 79 2c | 20 49 41 2c 20 55 53 41 |wa City,| IA, USA|
|000000e0| 0a 44 69 73 74 72 69 62 | 75 74 69 6f 6e 3a 20 77 |.Distrib|ution: w|
|000000f0| 6f 72 6c 64 0a 4d 65 73 | 73 61 67 65 2d 49 44 3a |orld.Mes|sage-ID:|
|00000100| 20 3c 50 69 6e 65 2e 41 | 33 32 2e 33 2e 39 31 2e | <Pine.A|32.3.91.|
|00000110| 39 36 30 34 30 35 31 35 | 31 38 34 39 2e 35 34 34 |96040515|1849.544|
|00000120| 37 38 41 2d 31 30 30 30 | 30 30 40 72 65 64 2e 77 |78A-1000|00@red.w|
|00000130| 65 65 67 2e 75 69 6f 77 | 61 2e 65 64 75 3e 0a 52 |eeg.uiow|a.edu>.R|
|00000140| 65 66 65 72 65 6e 63 65 | 73 3a 20 3c 4e 2e 30 34 |eference|s: <N.04|
|00000150| 30 32 39 36 2e 30 31 33 | 30 34 37 2e 31 38 40 44 |0296.013|047.18@D|
|00000160| 79 6e 61 6d 69 63 50 50 | 50 2d 31 38 35 2e 48 49 |ynamicPP|P-185.HI|
|00000170| 50 2e 43 41 4d 2e 4f 52 | 47 3e 20 3c 34 6a 75 64 |P.CAM.OR|G> <4jud|
|00000180| 64 6b 24 69 62 6e 40 63 | 69 73 75 32 2e 6a 73 63 |dk$ibn@c|isu2.jsc|
|00000190| 2e 6e 61 73 61 2e 67 6f | 76 3e 0a 4e 4e 54 50 2d |.nasa.go|v>.NNTP-|
|000001a0| 50 6f 73 74 69 6e 67 2d | 48 6f 73 74 3a 20 72 65 |Posting-|Host: re|
|000001b0| 64 2e 77 65 65 67 2e 75 | 69 6f 77 61 2e 65 64 75 |d.weeg.u|iowa.edu|
|000001c0| 0a 4d 69 6d 65 2d 56 65 | 72 73 69 6f 6e 3a 20 31 |.Mime-Ve|rsion: 1|
|000001d0| 2e 30 0a 43 6f 6e 74 65 | 6e 74 2d 54 79 70 65 3a |.0.Conte|nt-Type:|
|000001e0| 20 54 45 58 54 2f 50 4c | 41 49 4e 3b 20 63 68 61 | TEXT/PL|AIN; cha|
|000001f0| 72 73 65 74 3d 55 53 2d | 41 53 43 49 49 0a 58 2d |rset=US-|ASCII.X-|
|00000200| 53 65 6e 64 65 72 3a 20 | 72 6f 62 69 6e 73 6f 6e |Sender: |robinson|
|00000210| 40 72 65 64 2e 77 65 65 | 67 2e 75 69 6f 77 61 2e |@red.wee|g.uiowa.|
|00000220| 65 64 75 0a 49 6e 2d 52 | 65 70 6c 79 2d 54 6f 3a |edu.In-R|eply-To:|
|00000230| 20 3c 34 6a 75 64 64 6b | 24 69 62 6e 40 63 69 73 | <4juddk|$ibn@cis|
|00000240| 75 32 2e 6a 73 63 2e 6e | 61 73 61 2e 67 6f 76 3e |u2.jsc.n|asa.gov>|
|00000250| 20 0a 0a 4f 6e 20 33 20 | 41 70 72 20 31 39 39 36 | ..On 3 |Apr 1996|
|00000260| 2c 20 52 6f 67 65 72 20 | 4d 69 74 63 68 65 6c 6c |, Roger |Mitchell|
|00000270| 20 77 72 6f 74 65 3a 0a | 0a 3e 20 72 61 6d 72 6f | wrote:.|.> ramro|
|00000280| 64 40 63 61 6d 2e 6f 72 | 67 20 77 72 6f 74 65 3a |d@cam.or|g wrote:|
|00000290| 0a 3e 20 3e 43 6f 75 6c | 64 20 61 6e 79 6f 6e 65 |.> >Coul|d anyone|
|000002a0| 20 70 6c 65 61 73 65 20 | 74 65 6c 6c 20 6d 65 20 | please |tell me |
|000002b0| 68 6f 77 20 74 6f 20 77 | 72 69 74 65 20 74 68 65 |how to w|rite the|
|000002c0| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 70 72 6f 67 72 | followi|ng progr|
|000002d0| 61 6d 2e 0a 3e 20 3e 55 | 73 69 6e 67 20 6e 65 73 |am..> >U|sing nes|
|000002e0| 74 65 64 20 6c 6f 6f 70 | 69 6e 67 2c 20 74 68 65 |ted loop|ing, the|
|000002f0| 20 6f 75 74 70 75 74 20 | 69 73 20 73 75 70 70 6f | output |is suppo|
|00000300| 73 65 64 20 74 6f 20 6c | 6f 6f 6b 20 6c 69 6b 65 |sed to l|ook like|
|00000310| 20 74 68 69 73 2e 0a 3e | 20 3e 0a 3e 20 3e 50 6c | this..>| >.> >Pl|
|00000320| 65 61 73 65 20 65 6e 74 | 65 72 20 79 6f 75 72 20 |ease ent|er your |
|00000330| 61 67 65 20 69 6e 20 79 | 65 61 72 73 20 28 30 20 |age in y|ears (0 |
|00000340| 74 6f 20 65 6e 64 20 74 | 68 65 20 70 72 6f 67 72 |to end t|he progr|
|00000350| 61 6d 29 3a 20 31 30 0a | 3e 20 3e 48 61 70 70 79 |am): 10.|> >Happy|
|00000360| 20 42 69 72 74 68 64 61 | 79 20 54 6f 20 59 6f 75 | Birthda|y To You|
|00000370| 0a 3e 20 3e 59 6f 75 20 | 61 72 65 20 31 30 20 59 |.> >You |are 10 Y|
|00000380| 65 61 72 73 20 4f 6c 64 | 0a 3e 20 3e 0a 3e 20 3e |ears Old|.> >.> >|
|00000390| 5c 78 30 31 5c 78 30 31 | 5c 78 30 31 5c 78 30 31 |\x01\x01|\x01\x01|
|000003a0| 5c 78 30 31 5c 78 30 31 | 5c 78 30 5c 78 30 31 5c |\x01\x01|\x0\x01\|
|000003b0| 78 30 31 5c 78 30 31 28 | 74 65 6e 20 68 61 70 70 |x01\x01(|ten happ|
|000003c0| 79 20 66 61 63 65 73 29 | 0a 3e 20 3e 0a 3e 20 3e |y faces)|.> >.> >|
|000003d0| 54 68 65 20 70 61 72 74 | 20 74 68 61 74 20 49 20 |The part| that I |
|000003e0| 61 6d 20 68 61 76 69 6e | 67 20 61 20 68 61 72 64 |am havin|g a hard|
|000003f0| 20 74 69 6d 65 20 77 69 | 74 68 20 69 73 20 74 68 | time wi|th is th|
|00000400| 65 20 70 61 72 74 20 74 | 68 61 74 0a 3e 20 3e 77 |e part t|hat.> >w|
|00000410| 68 61 74 65 76 65 72 20 | 6e 75 6d 62 65 72 20 49 |hatever |number I|
|00000420| 20 65 6e 74 65 72 20 66 | 6f 72 20 74 68 65 20 61 | enter f|or the a|
|00000430| 67 65 2c 20 49 27 6d 20 | 73 75 70 70 6f 73 65 64 |ge, I'm |supposed|
|00000440| 20 74 6f 20 67 65 74 20 | 74 68 65 20 73 61 6d 65 | to get |the same|
|00000450| 20 6e 75 6d 62 65 72 0a | 3e 20 3e 6f 66 20 68 61 | number.|> >of ha|
|00000460| 70 70 79 20 66 61 63 65 | 73 2c 20 61 75 74 6f 6d |ppy face|s, autom|
|00000470| 61 74 69 63 61 6c 6c 79 | 2e 20 20 46 6f 72 20 65 |atically|. For e|
|00000480| 78 61 6d 70 6c 65 20 49 | 66 20 49 20 73 61 79 20 |xample I|f I say |
|00000490| 49 20 61 6d 20 34 35 20 | 79 65 61 72 73 20 6f 6c |I am 45 |years ol|
|000004a0| 64 2c 0a 3e 20 3e 74 68 | 65 6e 20 74 68 65 20 70 |d,.> >th|en the p|
|000004b0| 72 6f 67 72 61 6d 20 73 | 68 6f 75 6c 64 20 73 68 |rogram s|hould sh|
|000004c0| 6f 77 20 34 35 20 68 61 | 70 70 79 20 66 61 63 65 |ow 45 ha|ppy face|
|000004d0| 73 2e 0a 3e 20 0a 3e 20 | 53 69 6d 70 6c 65 2e 0a |s..> .> |Simple..|
|000004e0| 0a 20 20 54 68 69 73 20 | 69 73 20 63 72 6f 73 73 |. This |is cross|
|000004f0| 70 6f 73 74 65 64 20 62 | 65 74 77 65 65 6e 20 63 |posted b|etween c|
|00000500| 6f 6d 70 2e 6c 61 6e 67 | 2e 63 20 61 6e 64 20 63 |omp.lang|.c and c|
|00000510| 6f 6d 70 2e 6c 61 6e 67 | 2e 63 2b 2b 2e 20 20 54 |omp.lang|.c++. T|
|00000520| 68 65 20 0a 66 6f 6c 6c | 6f 77 69 6e 67 20 6f 75 |he .foll|owing ou|
|00000530| 74 70 75 74 20 69 73 20 | 66 72 6f 6d 20 61 20 43 |tput is |from a C|
|00000540| 20 63 6f 6d 70 69 6c 65 | 72 2e 0a 0a 0a 0a 0a 20 | compile|r...... |
|00000550| 20 20 20 73 63 61 6e 66 | 28 22 25 64 22 2c 20 26 | scanf|("%d", &|
|00000560| 41 67 65 29 3b 20 20 2f | 2f 20 66 6f 72 6d 61 74 |Age); /|/ format|
|00000570| 74 65 64 20 72 65 61 64 | 20 66 72 6f 6d 20 73 74 |ted read| from st|
|00000580| 64 69 6f 20 28 74 68 65 | 20 63 6f 6e 73 6f 6c 65 |dio (the| console|
|00000590| 29 0a 2e 2e 2e 2e 2e 2e | 2e 2e 2e 2e 2e 2e 2e 2e |).......|........|
|000005a0| 2e 2e 2e 2e 2e 2e 2e 2e | 2e 2e 5e 0a 25 43 43 2d |........|..^.%CC-|
|000005b0| 45 2d 42 41 44 53 54 4d | 54 2c 20 49 6e 76 61 6c |E-BADSTM|T, Inval|
|000005c0| 69 64 20 73 74 61 74 65 | 6d 65 6e 74 2e 0a 61 74 |id state|ment..at|
|000005d0| 20 6c 69 6e 65 20 6e 75 | 6d 62 65 72 20 31 32 20 | line nu|mber 12 |
|000005e0| 69 6e 20 66 69 6c 65 20 | 44 49 53 4b 24 4d 45 52 |in file |DISK$MER|
|000005f0| 43 55 52 59 3a 5b 43 4d | 44 4a 46 52 5d 56 4f 49 |CURY:[CM|DJFR]VOI|
|00000600| 44 4d 41 49 4e 2e 43 3b | 34 0a 0a 20 20 20 20 70 |DMAIN.C;|4.. p|
|00000610| 72 69 6e 74 66 28 22 5c | 6e 5c 72 5c 6e 5c 72 22 |rintf("\|n\r\n\r"|
|00000620| 29 3b 20 2f 2f 20 74 68 | 69 73 20 6a 75 73 74 20 |); // th|is just |
|00000630| 67 69 76 65 73 20 79 6f | 75 20 74 77 6f 20 62 6c |gives yo|u two bl|
|00000640| 61 6e 6b 20 6c 69 6e 65 | 73 0a 2e 2e 2e 2e 2e 2e |ank line|s.......|
|00000650| 2e 2e 2e 2e 2e 2e 2e 2e | 2e 2e 2e 2e 2e 2e 2e 2e |........|........|
|00000660| 2e 2e 5e 0a 25 43 43 2d | 45 2d 42 41 44 53 54 4d |..^.%CC-|E-BADSTM|
|00000670| 54 2c 20 49 6e 76 61 6c | 69 64 20 73 74 61 74 65 |T, Inval|id state|
|00000680| 6d 65 6e 74 2e 0a 61 74 | 20 6c 69 6e 65 20 6e 75 |ment..at| line nu|
|00000690| 6d 62 65 72 20 31 34 20 | 69 6e 20 66 69 6c 65 20 |mber 14 |in file |
|000006a0| 44 49 53 4b 24 4d 45 52 | 43 55 52 59 3a 5b 43 4d |DISK$MER|CURY:[CM|
|000006b0| 44 4a 46 52 5d 56 4f 49 | 44 4d 41 49 4e 2e 43 3b |DJFR]VOI|DMAIN.C;|
|000006c0| 34 0a 0a 20 20 20 20 20 | 20 2f 2f 20 74 68 69 73 |4.. | // this|
|000006d0| 20 77 69 6c 6c 20 70 72 | 69 6e 74 20 74 68 65 20 | will pr|int the |
|000006e0| 74 77 6f 20 6c 69 6e 65 | 73 20 77 69 74 68 20 74 |two line|s with t|
|000006f0| 68 65 20 61 67 65 20 65 | 6e 74 65 72 65 64 0a 2e |he age e|ntered..|
|00000700| 2e 2e 2e 2e 2e 5e 0a 25 | 43 43 2d 45 2d 42 41 44 |.....^.%|CC-E-BAD|
|00000710| 53 54 4d 54 2c 20 49 6e | 76 61 6c 69 64 20 73 74 |STMT, In|valid st|
|00000720| 61 74 65 6d 65 6e 74 2e | 0a 61 74 20 6c 69 6e 65 |atement.|.at line|
|00000730| 20 6e 75 6d 62 65 72 20 | 31 38 20 69 6e 20 66 69 | number |18 in fi|
|00000740| 6c 65 20 44 49 53 4b 24 | 4d 45 52 43 55 52 59 3a |le DISK$|MERCURY:|
|00000750| 5b 43 4d 44 4a 46 52 5d | 56 4f 49 44 4d 41 49 4e |[CMDJFR]|VOIDMAIN|
|00000760| 2e 43 3b 34 0a 0a 20 20 | 20 20 20 20 2f 2f 20 74 |.C;4.. | // t|
|00000770| 68 69 73 20 6c 6f 6f 70 | 20 77 69 6c 6c 20 70 72 |his loop| will pr|
|00000780| 69 6e 74 20 61 20 73 69 | 6e 67 6c 65 20 22 68 61 |int a si|ngle "ha|
|00000790| 70 70 79 20 66 61 63 65 | 22 20 75 6e 74 69 6c 20 |ppy face|" until |
|000007a0| 58 20 3d 3d 20 41 67 65 | 20 2d 20 6e 6f 74 65 20 |X == Age| - note |
|000007b0| 74 68 61 74 0a 2e 2e 2e | 2e 2e 2e 5e 0a 25 43 43 |that....|...^.%CC|
|000007c0| 2d 45 2d 42 41 44 53 54 | 4d 54 2c 20 49 6e 76 61 |-E-BADST|MT, Inva|
|000007d0| 6c 69 64 20 73 74 61 74 | 65 6d 65 6e 74 2e 0a 61 |lid stat|ement..a|
|000007e0| 74 20 6c 69 6e 65 20 6e | 75 6d 62 65 72 20 32 32 |t line n|umber 22|
|000007f0| 20 69 6e 20 66 69 6c 65 | 20 44 49 53 4b 24 4d 45 | in file| DISK$ME|
|00000800| 52 43 55 52 59 3a 5b 43 | 4d 44 4a 46 52 5d 56 4f |RCURY:[C|MDJFR]VO|
|00000810| 49 44 4d 41 49 4e 2e 43 | 3b 34 0a 0a 20 20 20 20 |IDMAIN.C|;4.. |
|00000820| 20 20 2f 2f 20 73 69 6e | 63 65 20 58 20 73 74 61 | // sin|ce X sta|
|00000830| 72 74 73 20 61 74 20 30 | 2c 20 79 6f 75 20 64 6f |rts at 0|, you do|
|00000840| 6e 27 74 20 77 61 6e 74 | 20 74 6f 20 70 72 69 6e |n't want| to prin|
|00000850| 74 20 77 68 65 6e 20 58 | 20 65 71 75 61 6c 73 20 |t when X| equals |
|00000860| 41 67 65 2c 20 79 6f 75 | 20 77 6f 75 6c 64 0a 2e |Age, you| would..|
|00000870| 2e 2e 2e 2e 2e 2e 2e 2e | 2e 2e 2e 2e 2e 2e 2e 2e |........|........|
|00000880| 2e 2e 2e 2e 2e 2e 2e 2e | 2e 2e 2e 2e 2e 2e 2e 2e |........|........|
|00000890| 2e 2e 2e 2e 5e 0a 25 43 | 43 2d 45 2d 43 48 41 52 |....^.%C|C-E-CHAR|
|000008a0| 4f 56 45 52 46 4c 2c 20 | 41 20 63 68 61 72 61 63 |OVERFL, |A charac|
|000008b0| 74 65 72 20 63 6f 6e 73 | 74 61 6e 74 20 76 61 6c |ter cons|tant val|
|000008c0| 75 65 20 72 65 71 75 69 | 72 65 73 20 6d 6f 72 65 |ue requi|res more|
|000008d0| 20 74 68 61 6e 20 73 69 | 7a 65 6f 66 28 69 6e 74 | than si|zeof(int|
|000008e0| 29 20 62 79 74 65 73 20 | 6f 66 20 73 74 6f 72 61 |) bytes |of stora|
|000008f0| 67 65 2e 0a 61 74 20 6c | 69 6e 65 20 6e 75 6d 62 |ge..at l|ine numb|
|00000900| 65 72 20 32 33 20 69 6e | 20 66 69 6c 65 20 44 49 |er 23 in| file DI|
|00000910| 53 4b 24 4d 45 52 43 55 | 52 59 3a 5b 43 4d 44 4a |SK$MERCU|RY:[CMDJ|
|00000920| 46 52 5d 56 4f 49 44 4d | 41 49 4e 2e 43 3b 34 0a |FR]VOIDM|AIN.C;4.|
|00000930| 0a 20 20 20 20 20 20 66 | 6f 72 28 58 20 3d 20 30 |. f|or(X = 0|
|00000940| 3b 20 58 20 3c 20 41 67 | 65 3b 20 58 2b 2b 29 0a |; X < Ag|e; X++).|
|00000950| 2e 2e 2e 2e 2e 2e 2e 2e | 2e 2e 2e 2e 2e 2e 2e 2e |........|........|
|00000960| 2e 2e 2e 2e 2e 2e 2e 2e | 2e 2e 2e 2e 2e 5e 0a 25 |........|.....^.%|
|00000970| 43 43 2d 45 2d 4e 4f 53 | 45 4d 49 2c 20 4d 69 73 |CC-E-NOS|EMI, Mis|
|00000980| 73 69 6e 67 20 22 3b 22 | 2e 0a 61 74 20 6c 69 6e |sing ";"|..at lin|
|00000990| 65 20 6e 75 6d 62 65 72 | 20 32 36 20 69 6e 20 66 |e number| 26 in f|
|000009a0| 69 6c 65 20 44 49 53 4b | 24 4d 45 52 43 55 52 59 |ile DISK|$MERCURY|
|000009b0| 3a 5b 43 4d 44 4a 46 52 | 5d 56 4f 49 44 4d 41 49 |:[CMDJFR|]VOIDMAI|
|000009c0| 4e 2e 43 3b 34 0a 0a 20 | 20 20 20 20 20 2f 2f 20 |N.C;4.. | // |
|000009d0| 74 68 69 73 20 70 72 69 | 6e 74 73 20 6f 75 74 20 |this pri|nts out |
|000009e0| 74 77 6f 20 62 6c 61 6e | 6b 20 6c 69 6e 65 73 0a |two blan|k lines.|
|000009f0| 2e 2e 2e 2e 2e 2e 5e 0a | 25 43 43 2d 45 2d 42 41 |......^.|%CC-E-BA|
|00000a00| 44 53 54 4d 54 2c 20 49 | 6e 76 61 6c 69 64 20 73 |DSTMT, I|nvalid s|
|00000a10| 74 61 74 65 6d 65 6e 74 | 2e 0a 61 74 20 6c 69 6e |tatement|..at lin|
|00000a20| 65 20 6e 75 6d 62 65 72 | 20 32 39 20 69 6e 20 66 |e number| 29 in f|
|00000a30| 69 6c 65 20 44 49 53 4b | 24 4d 45 52 43 55 52 59 |ile DISK|$MERCURY|
|00000a40| 3a 5b 43 4d 44 4a 46 52 | 5d 56 4f 49 44 4d 41 49 |:[CMDJFR|]VOIDMAI|
|00000a50| 4e 2e 43 3b 34 0a 0a 20 | 20 20 20 65 6c 73 65 20 |N.C;4.. | else |
|00000a60| 20 20 20 20 20 20 20 2f | 2f 20 69 66 20 74 68 65 | /|/ if the|
|00000a70| 20 75 73 65 72 20 65 6e | 74 65 72 65 64 20 30 2c | user en|tered 0,|
|00000a80| 20 74 68 65 6e 20 74 68 | 65 20 6f 72 69 67 69 6e | then th|e origin|
|00000a90| 61 6c 20 69 66 28 41 67 | 65 29 20 65 76 61 6c 75 |al if(Ag|e) evalu|
|00000aa0| 61 74 65 73 20 61 73 20 | 66 61 6c 73 65 2c 0a 2e |ates as |false,..|
|00000ab0| 2e 2e 2e 5e 0a 25 43 43 | 2d 45 2d 42 41 44 53 54 |...^.%CC|-E-BADST|
|00000ac0| 4d 54 2c 20 49 6e 76 61 | 6c 69 64 20 73 74 61 74 |MT, Inva|lid stat|
|00000ad0| 65 6d 65 6e 74 2e 0a 61 | 74 20 6c 69 6e 65 20 6e |ement..a|t line n|
|00000ae0| 75 6d 62 65 72 20 33 33 | 20 69 6e 20 66 69 6c 65 |umber 33| in file|
|00000af0| 20 44 49 53 4b 24 4d 45 | 52 43 55 52 59 3a 5b 43 | DISK$ME|RCURY:[C|
|00000b00| 4d 44 4a 46 52 5d 56 4f | 49 44 4d 41 49 4e 2e 43 |MDJFR]VO|IDMAIN.C|
|00000b10| 3b 34 0a 0a 20 20 20 20 | 20 20 65 78 69 74 28 30 |;4.. | exit(0|
|00000b20| 29 3b 20 20 2f 2f 20 73 | 6f 20 65 78 69 74 20 74 |); // s|o exit t|
|00000b30| 68 65 20 70 72 6f 67 72 | 61 6d 0a 2e 2e 2e 2e 2e |he progr|am......|
|00000b40| 2e 2e 2e 2e 2e 2e 2e 2e | 2e 2e 2e 5e 0a 25 43 43 |........|...^.%CC|
|00000b50| 2d 45 2d 42 41 44 53 54 | 4d 54 2c 20 49 6e 76 61 |-E-BADST|MT, Inva|
|00000b60| 6c 69 64 20 73 74 61 74 | 65 6d 65 6e 74 2e 0a 61 |lid stat|ement..a|
|00000b70| 74 20 6c 69 6e 65 20 6e | 75 6d 62 65 72 20 33 34 |t line n|umber 34|
|00000b80| 20 69 6e 20 66 69 6c 65 | 20 44 49 53 4b 24 4d 45 | in file| DISK$ME|
|00000b90| 52 43 55 52 59 3a 5b 43 | 4d 44 4a 46 52 5d 56 4f |RCURY:[C|MDJFR]VO|
|00000ba0| 49 44 4d 41 49 4e 2e 43 | 3b 34 0a 0a 0a 0a 3e 20 |IDMAIN.C|;4....> |
|00000bb0| 0a 3e 20 23 69 6e 63 6c | 75 64 65 20 3c 73 74 64 |.> #incl|ude <std|
|00000bc0| 69 6f 2e 68 3e 20 20 20 | 20 2f 2f 20 66 6f 72 20 |io.h> | // for |
|00000bd0| 74 68 65 20 70 72 69 6e | 74 66 28 29 20 61 6e 64 |the prin|tf() and|
|00000be0| 20 73 63 61 6e 66 28 29 | 20 66 75 6e 63 74 69 6f | scanf()| functio|
|00000bf0| 6e 73 0a 0a 23 69 6e 63 | 6c 75 64 65 20 3c 73 74 |ns..#inc|lude <st|
|00000c00| 64 69 6f 2e 68 3e 20 20 | 20 20 2f 2f 20 66 6f 72 |dio.h> | // for|
|00000c10| 20 74 68 65 20 70 72 69 | 6e 74 66 28 29 20 61 6e | the pri|ntf() an|
|00000c20| 64 20 73 63 61 6e 66 28 | 29 20 66 75 6e 63 74 69 |d scanf(|) functi|
|00000c30| 6f 6e 73 0a 2e 2e 2e 2e | 2e 2e 2e 2e 2e 2e 2e 2e |ons.....|........|
|00000c40| 2e 2e 2e 2e 2e 2e 2e 2e | 2e 2e 5e 0a 25 43 43 2d |........|..^.%CC-|
|00000c50| 57 2d 49 47 4e 4f 52 45 | 45 58 54 52 41 2c 20 49 |W-IGNORE|EXTRA, I|
|00000c60| 67 6e 6f 72 69 6e 67 20 | 65 78 74 72 61 6e 65 6f |gnoring |extraneo|
|00000c70| 75 73 20 74 65 78 74 20 | 70 72 65 73 65 6e 74 20 |us text |present |
|00000c80| 61 74 20 74 68 65 20 65 | 6e 64 20 6f 66 20 61 20 |at the e|nd of a |
|00000c90| 0a 70 72 65 70 72 6f 63 | 65 73 73 6f 72 20 64 69 |.preproc|essor di|
|00000ca0| 72 65 63 74 69 76 65 2e | 0a 61 74 20 6c 69 6e 65 |rective.|.at line|
|00000cb0| 20 6e 75 6d 62 65 72 20 | 31 20 69 6e 20 66 69 6c | number |1 in fil|
|00000cc0| 65 20 44 49 53 4b 24 4d | 45 52 43 55 52 59 3a 5b |e DISK$M|ERCURY:[|
|00000cd0| 43 4d 44 4a 46 52 5d 56 | 4f 49 44 4d 41 49 4e 2e |CMDJFR]V|OIDMAIN.|
|00000ce0| 43 3b 34 0a 0a 0a 3e 20 | 23 69 6e 63 6c 75 64 65 |C;4...> |#include|
|00000cf0| 20 3c 73 74 64 6c 69 62 | 2e 68 3e 20 20 20 2f 2f | <stdlib|.h> //|
|00000d00| 20 66 6f 72 20 74 68 65 | 20 65 78 69 74 28 29 20 | for the| exit() |
|00000d10| 66 75 6e 63 74 69 6f 6e | 0a 0a 23 69 6e 63 6c 75 |function|..#inclu|
|00000d20| 64 65 20 3c 73 74 64 6c | 69 62 2e 68 3e 20 20 20 |de <stdl|ib.h> |
|00000d30| 2f 2f 20 66 6f 72 20 74 | 68 65 20 65 78 69 74 28 |// for t|he exit(|
|00000d40| 29 20 66 75 6e 63 74 69 | 6f 6e 0a 2e 2e 2e 2e 2e |) functi|on......|
|00000d50| 2e 2e 2e 2e 2e 2e 2e 2e | 2e 2e 2e 2e 2e 2e 2e 2e |........|........|
|00000d60| 2e 5e 0a 25 43 43 2d 57 | 2d 49 47 4e 4f 52 45 45 |.^.%CC-W|-IGNOREE|
|00000d70| 58 54 52 41 2c 20 49 67 | 6e 6f 72 69 6e 67 20 65 |XTRA, Ig|noring e|
|00000d80| 78 74 72 61 6e 65 6f 75 | 73 20 74 65 78 74 20 70 |xtraneou|s text p|
|00000d90| 72 65 73 65 6e 74 20 61 | 74 20 74 68 65 20 65 6e |resent a|t the en|
|00000da0| 64 20 6f 66 20 61 20 70 | 72 65 70 72 6f 63 65 73 |d of a p|reproces|
|00000db0| 73 6f 72 20 64 69 72 65 | 63 74 69 76 65 2e 0a 61 |sor dire|ctive..a|
|00000dc0| 74 20 6c 69 6e 65 20 6e | 75 6d 62 65 72 20 32 20 |t line n|umber 2 |
|00000dd0| 69 6e 20 66 69 6c 65 20 | 44 49 53 4b 24 4d 45 52 |in file |DISK$MER|
|00000de0| 43 55 52 59 3a 5b 43 4d | 44 4a 46 52 5d 56 4f 49 |CURY:[CM|DJFR]VOI|
|00000df0| 44 4d 41 49 4e 2e 43 3b | 34 0a 0a 3e 20 76 6f 69 |DMAIN.C;|4..> voi|
|00000e00| 64 20 6d 61 69 6e 28 76 | 6f 69 64 29 0a 0a 76 6f |d main(v|oid)..vo|
|00000e10| 69 64 20 6d 61 69 6e 28 | 76 6f 69 64 29 0a 2e 2e |id main(|void)...|
|00000e20| 2e 2e 2e 5e 0a 25 43 43 | 2d 45 2d 4e 45 45 44 4e |...^.%CC|-E-NEEDN|
|00000e30| 4f 4e 56 4f 49 44 2c 20 | 49 6e 20 74 68 69 73 20 |ONVOID, |In this |
|00000e40| 73 74 61 74 65 6d 65 6e | 74 2c 20 22 6d 61 69 6e |statemen|t, "main|
|00000e50| 28 2e 2e 2e 29 22 20 68 | 61 73 20 76 6f 69 64 20 |(...)" h|as void |
|00000e60| 74 79 70 65 2c 20 62 75 | 74 20 0a 6f 63 63 75 72 |type, bu|t .occur|
|00000e70| 73 20 69 6e 20 61 20 63 | 6f 6e 74 65 78 74 20 74 |s in a c|ontext t|
|00000e80| 68 61 74 20 72 65 71 75 | 69 72 65 73 20 61 20 6e |hat requ|ires a n|
|00000e90| 6f 6e 2d 76 6f 69 64 20 | 72 65 73 75 6c 74 2e 0a |on-void |result..|
|00000ea0| 61 74 20 6c 69 6e 65 20 | 6e 75 6d 62 65 72 20 34 |at line |number 4|
|00000eb0| 20 69 6e 20 66 69 6c 65 | 20 44 49 53 4b 24 4d 45 | in file| DISK$ME|
|00000ec0| 52 43 55 52 59 3a 5b 43 | 4d 44 4a 46 52 5d 56 4f |RCURY:[C|MDJFR]VO|
|00000ed0| 49 44 4d 41 49 4e 2e 43 | 3b 34 0a 0a 20 20 6d 61 |IDMAIN.C|;4.. ma|
|00000ee0| 69 6e 20 72 65 74 75 72 | 6e 73 20 69 6e 74 20 69 |in retur|ns int i|
|00000ef0| 6e 20 62 6f 74 68 20 43 | 20 61 6e 64 20 43 2b 2b |n both C| and C++|
|00000f00| 2e 0a 0a 3e 20 7b 0a 3e | 20 20 20 69 6e 74 20 58 |...> {.>| int X|
|00000f10| 2c 20 41 67 65 3b 0a 3e | 20 0a 3e 20 20 20 77 68 |, Age;.>| .> wh|
|00000f20| 69 6c 65 28 31 29 20 20 | 2f 2f 20 65 78 65 63 75 |ile(1) |// execu|
|00000f30| 74 65 20 66 6f 72 65 76 | 65 72 20 28 65 78 63 65 |te forev|er (exce|
|00000f40| 70 74 20 66 6f 72 20 74 | 68 65 20 65 78 69 74 20 |pt for t|he exit |
|00000f50| 66 75 6e 63 74 69 6f 6e | 20 62 65 6c 6f 77 29 0a |function| below).|
|00000f60| 0a 20 20 77 68 69 6c 65 | 28 31 29 20 20 2f 2f 20 |. while|(1) // |
|00000f70| 65 78 65 63 75 74 65 20 | 66 6f 72 65 76 65 72 20 |execute |forever |
|00000f80| 28 65 78 63 65 70 74 20 | 66 6f 72 20 74 68 65 20 |(except |for the |
|00000f90| 65 78 69 74 20 66 75 6e | 63 74 69 6f 6e 20 62 65 |exit fun|ction be|
|00000fa0| 6c 6f 77 29 0a 2e 2e 2e | 2e 2e 2e 2e 2e 2e 2e 2e |low)....|........|
|00000fb0| 2e 5e 0a 25 43 43 2d 45 | 2d 42 41 44 53 54 4d 54 |.^.%CC-E|-BADSTMT|
|00000fc0| 2c 20 49 6e 76 61 6c 69 | 64 20 73 74 61 74 65 6d |, Invali|d statem|
|00000fd0| 65 6e 74 2e 0a 61 74 20 | 6c 69 6e 65 20 6e 75 6d |ent..at |line num|
|00000fe0| 62 65 72 20 38 20 69 6e | 20 66 69 6c 65 20 44 49 |ber 8 in| file DI|
|00000ff0| 53 4b 24 4d 45 52 43 55 | 52 59 3a 5b 43 4d 44 4a |SK$MERCU|RY:[CMDJ|
|00001000| 46 52 5d 56 4f 49 44 4d | 41 49 4e 2e 43 3b 34 0a |FR]VOIDM|AIN.C;4.|
|00001010| 0a 20 20 41 20 73 69 6d | 69 6c 61 72 20 65 72 72 |. A sim|ilar err|
|00001020| 6f 72 20 6f 63 63 75 72 | 72 65 64 20 66 6f 72 20 |or occur|red for |
|00001030| 61 6c 6c 20 74 68 65 20 | 6f 74 68 65 72 20 2f 2f |all the |other //|
|00001040| 73 2c 20 62 65 63 61 75 | 73 65 20 2f 2f 20 69 73 |s, becau|se // is|
|00001050| 20 6e 6f 74 20 61 20 0a | 6c 65 67 61 6c 20 74 6f | not a .|legal to|
|00001060| 6b 65 6e 20 69 6e 20 43 | 2e 20 20 53 69 6e 63 65 |ken in C|. Since|
|00001070| 20 6d 61 69 6e 20 72 65 | 74 75 72 6e 73 20 69 6e | main re|turns in|
|00001080| 74 20 79 6f 75 27 6c 6c | 20 77 61 6e 74 20 74 6f |t you'll| want to|
|00001090| 20 72 65 74 75 72 6e 20 | 30 3b 0a 0a 20 20 63 6f | return |0;.. co|
|000010a0| 6d 70 2e 6c 61 6e 67 2e | 63 2b 2b 20 74 72 69 6d |mp.lang.|c++ trim|
|000010b0| 6d 65 64 2e 0a 0a 20 2d | 2d 4a 61 6d 65 73 20 52 |med... -|-James R|
|000010c0| 6f 62 69 6e 73 6f 6e 20 | 28 72 6f 62 69 6e 73 6f |obinson |(robinso|
|000010d0| 6e 40 63 73 2e 75 69 6f | 77 61 2e 65 64 75 20 2d |n@cs.uio|wa.edu -|
|000010e0| 6f 72 2d 20 6a 61 6d 65 | 73 2d 72 6f 62 69 6e 73 |or- jame|s-robins|
|000010f0| 6f 6e 40 75 69 6f 77 61 | 2e 65 64 75 29 0a 2f 2a |on@uiowa|.edu)./*|
|00001100| 20 20 20 49 6e 64 65 65 | 64 2c 20 43 2b 2b 20 69 | Indee|d, C++ i|
|00001110| 73 20 61 20 62 69 74 20 | 6f 66 20 61 6e 20 6f 64 |s a bit |of an od|
|00001120| 64 62 61 6c 6c 20 6f 66 | 20 61 20 6c 61 6e 67 75 |dball of| a langu|
|00001130| 61 67 65 20 2e 2e 2e 20 | 67 69 76 65 6e 20 74 68 |age ... |given th|
|00001140| 65 20 77 61 79 20 74 68 | 61 74 20 2a 0a 20 2a 20 |e way th|at *. * |
|00001150| 69 74 20 72 65 71 75 69 | 72 65 73 20 70 72 69 76 |it requi|res priv|
|00001160| 61 74 65 20 70 61 72 74 | 73 20 74 6f 20 62 65 20 |ate part|s to be |
|00001170| 76 69 73 69 62 6c 65 2e | 20 20 54 68 69 73 20 69 |visible.| This i|
|00001180| 6e 63 72 65 61 73 65 73 | 20 74 68 65 20 73 74 72 |ncreases| the str|
|00001190| 65 6e 67 74 68 20 6f 66 | 20 20 2a 0a 20 2a 20 63 |ength of| *. * c|
|000011a0| 6f 75 70 6c 69 6e 67 20 | 64 72 61 6d 61 74 69 63 |oupling |dramatic|
|000011b0| 61 6c 6c 79 2e 2e 2e 20 | 20 20 20 20 20 20 20 20 |ally... | |
|000011c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 2d 2d | | --|
|000011d0| 20 44 72 2e 20 52 69 63 | 68 20 41 72 74 79 6d 20 | Dr. Ric|h Artym |
|000011e0| 20 20 20 20 20 20 20 20 | 20 2a 2f 0a 0a 0a 0a 0a | | */.....|
+--------+-------------------------+-------------------------+--------+--------+